package com.aaa.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Employee implements Serializable {
    private Integer id;

    private String name;

    private String gender;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date birthday;

    private String idCard;

    private String wedlock;

    private Integer nationId;

    private String nativePlace;

    private Integer politicId;

    private String email;

    private String phone;

    private String address;

    private Integer departmentId;

    private Integer jobLevelId;

    private Integer posId;

    private String engageForm;

    private String tiptopDegree;

    private String specialty;

    private String school;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginDate;

    private String workState;

    private String workID;

    private Double contractTerm;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date conversionTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date notWorkDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginContract;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endContract;

    private Integer workAge;

    //EmployeeMapper联合查询时要用
    private Salary salary;
    private Department department;



}